use std::env;



fn main() {
    println!("cargo:rustc-link-lib=wpcap");

    let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();

    cbindgen::Builder::new()
        .with_crate(crate_dir)
        .with_language(cbindgen::Language::C)
        .with_pragma_once(true)
        .rename_item("None_or_____c_char", "None_or_String")
        .generate()
        .expect("Unable to generate bindings")
        .write_to_file("bindings.h");
}
